
import request from '@/utils/request'

export function listcheck(query) {
  return request({
    url: '/system/check/list',
    method: 'get',
    params: query
  })
}

export function selectList(query) {
  return request({
    url: '/system/check/listSelect',

    method: 'get',
    params: query
  })
}
export function delcheck(compFeeIds) {
  return request({
    url: '/system/check/' + compFeeIds,
    method: 'delete'
  })
}
export function checkAdd(data) {
  return request({
    url: '/system/check',
    method: 'post',
    data: data
  })
}
export function updategcheck(data) {
  return request({
    url: '/system/check',
    method: 'put',
    data: data
  })
}
export function checkInfo(query) {
  return request({
    url: '/system/check/' + query,
    method: 'get',
  })
}
// 启用禁用供应商
export function effectcheck(id, effect) {
  console.log('11')
  return request({
    url: '/system/check/effect/' + id + '/' + effect,
    method: 'put',
  })
}

// 上传签到表 type 1首次 2末次 3总结报告
export function signFile(query) {
  return request({
    url: '/system/check/signFile',
    method: 'get',
    params: query
  })
}

